<!DOCTYPE html>
<html>
<head>
    <title>养车</title>
    <link rel = "icon" href = "">
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <link rel="stylesheet" href="/static/css/reset.css">
    <link rel="stylesheet" href="/static/css/public.css">

</head>
<body>
<div class="public-header-warrp">
    <div class="public-header">
        <div class="content">
            <div class="public-header-logo"><a href=""><i>LOGO</i><h3>养车</h3></a></div>
            <div class="public-header-admin fr">
                <p class="admin-name">管理员 您好！</p>
                <div class="public-header-fun fr">
                    <a href="" class="public-header-man">管理</a>
                    <a href="{:url('admin/user/loginOut')}" class="public-header-loginout">安全退出</a>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="clearfix"></div>
<!-- 内容展示 -->
<div class="public-ifame mt20">
    <div class="content">
        <!-- 内容模块头 -->

        <div class="clearfix"></div>
        <!-- 左侧导航栏 -->
        <div class="public-ifame-leftnav">
            <div class="public-title-warrp">
                <div class="public-ifame-title ">
                    <a href="index.php">首页</a>
                </div>
            </div>
            <ul class="left-nav-list">
                <li class="public-ifame-item">
                    <a href="javascript:;">服务分类管理</a>
                    <div class="ifame-item-sub">
                        <ul>
                            <li class="active"><a href="{:url('admin/index/CarWash?wa_type=1')}" target="content">洗车</a></li>
                            <li><a href="{:url('admin/index/CarWash?wa_type=2')}" target="content">保养</a></li>
                            <li><a href="{:url('admin/index/CarWash?wa_type=3')}" target="content">喷漆</a></li>
                            <li><a href="{:url('admin/index/CarWash?wa_type=4')}" target="content">轮胎</a></li>
<!--                            <li><a href="" target="content">故障维修</a></li>-->
                            <li><a href="{:url('admin/index/rescue')}" target="content">道路救援</a></li>
                        </ul>
                    </div>
                </li>
            </ul>
            <ul class="left-nav-list">
                <li class="public-ifame-item">
                    <a href="javascript:;">用户管理</a>
                    <div class="ifame-item-sub">
                        <ul>
                            <li class="active"><a href="{:url('admin/business/BusinessUser')}" target="content">个人</a></li>
                            <li><a href="{:url('admin/business/index')}" target="content">商家管理</a></li>
                        </ul>
                    </div>
                </li>
            </ul>
            <ul class="left-nav-list">
                <li class="public-ifame-item">
                    <a href="javascript:;">订单管理</a>
                    <div class="ifame-item-sub">
                        <ul>
                            <li class="active"><a href="{:url('admin/order/index')}" target="content">所有订单</a></li>
                            <li class="active"><a href="{:url('admin/order/indexs')}" target="content">商家订单</a></li>
                        </ul>
                    </div>
                </li>
            </ul>
            <ul class="left-nav-list">
                <li class="public-ifame-item">
                    <a href="javascript:;">问答</a>
                    <div class="ifame-item-sub">
                        <ul>
                            <li class="active"><a href="{:url('admin/Answer/index')}" target="content">问答分类</a></li>
                            <li class="active"><a href="{:url('admin/Answer/answer')}" target="content">问答</a></li>
                        </ul>
                    </div>
                </li>
            </ul>
            <ul class="left-nav-list">
                <li class="public-ifame-item">
                    <a href="javascript:;">卡卷管理</a>
                    <div class="ifame-item-sub">
                        <ul>
                            <li class="active"><a href="{:url('admin/discount/index')}" target="content">卡卷管理</a></li>
                        </ul>
                    </div>
                </li>
            </ul>
            <ul class="left-nav-list">
                <li class="public-ifame-item">
                    <a href="javascript:;">广告管理</a>
                    <div class="ifame-item-sub">
                        <ul>
                            <li class="active"><a href="{:url('admin/advert/index?area=2')}" target="content">广告管理</a></li>
                        </ul>
                    </div>
                </li>
            </ul>
<!--            <ul class="left-nav-list">-->
<!--                <li class="public-ifame-item">-->
<!--                    <a href="javascript:;">纠纷管理</a>-->
<!--                    <div class="ifame-item-sub">-->
<!--                        <ul>-->
<!--                            <li class="active"><a href="{:url('admin/index/CarWash')}" target="content">用户投诉</a></li>-->
<!--                        </ul>-->
<!--                    </div>-->
<!--                </li>-->
<!--            </ul>-->
        </div>
        <!-- 右侧内容展示部分 -->
        <div class="public-ifame-content">
            <iframe name="content" src="" frameborder="0" id="mainframe" scrolling="yes" marginheight="0" marginwidth="0" width="100%" style="height: 700px;"></iframe>
        </div>
    </div>
</div>
<script src="/static/js/jquery.min.js"></script>
<script>
    $().ready(function(){
        var item = $(".public-ifame-item");

        for(var i=0; i < item.length; i++){
            $(item[i]).on('click',function(){
                $(".ifame-item-sub").hide();
                if($(this.lastElementChild).css('display') == 'block'){
                    $(this.lastElementChild).hide()
                    $(".ifame-item-sub li").removeClass("active");
                }else{
                    $(this.lastElementChild).show();
                    $(".ifame-item-sub li").on('click',function(){
                        $(".ifame-item-sub li").removeClass("active");
                        $(this).addClass("active");
                    });
                }
            });
        }
    });
</script>
</body>
</html>